// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' //(根据版本路径不同会有差异，按照自己版本路径)
Vue.use(ElementUI)
import App from './App'
import router from './router'
import request from '@/utils/request'
// 引入echarts
import * as echarts from 'echarts';
import scroll from 'vue-seamless-scroll'

Vue.use(scroll)
Vue.config.productionTip = false
Vue.prototype.$post = request.post
Vue.prototype.$post2 = request.post2
Vue.prototype.$post3 = request.post3
Vue.prototype.$get = request.get
Vue.prototype.$get3 = request.get3
Vue.prototype.$put = request.put
Vue.prototype.$delete = request.delete
Vue.prototype.$download = request.download
Vue.prototype.$download2 = request.download2

Vue.prototype.$upload = request.upload
Vue.prototype.$fileUpload = request.fileUpload
Vue.prototype.$echarts = echarts

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
